const { Tray } = require('electron')
const EnvContext = require('../../common/context/EnvContext');
const { getAllTrayPlugin } = require('../../core/pluginSearchService/getAllTrayPlugin')

exports.doDestroyTray = function () {
    const trays = EnvContext.getInstance().getTrays()
    Object.values(trays).map((tray) => {
        if (!tray.isDestroyed()) {
            tray.destroy()
        }
    })
}



